import request from '@/utils/request'


export function getMachinePic(params) {
  return request({
    url: 'http://dgzhet.com:8000/api/echarts/machines/pie/',
    method: 'get',
    params
  })
}

export function getMachineDetail(params) {
  return request({
    url: 'http://dgzhet.com:8000/api/echarts/machines/detail/',
    method: 'get',
    params
  })
}

export function getMachineTime(params) {
  return request({
    url: 'http://dgzhet.com:8000/api/echarts/machines/time/',
    method: 'get',
    params
  })
}

export function getEveryMachineDetail(data) {
  return request({
    url: 'http://dgzhet.com:8000/api/echarts/everymachines/detail/',
    method: 'get',
    data
  })
}



export function getShortagePie(params) {
  return request({
    url: 'http://dgzhet.com:8000/api/echarts/shortage/pie/',
    method: 'get',
    params
  })
}
export function getShortageDetail(params) {
  return request({
    url: 'http://dgzhet.com:8000/api/echarts/shortages/detail/',
    method: 'get',
    params
  })
}

export function getShortageTime(params) {
  return request({
    url: 'http://dgzhet.com:8000/api/echarts/shortage/time/',
    method: 'get',
    params
  })
}


export function getEveryShortageDetail(data) {
  return request({
    url: 'http://dgzhet.com:8000/api/echarts/everyshortages/detail/',
    method: 'get',
    data
  })
}


export function month_machine(data) {
  return request({
    url: 'http://dgzhet.com:8000/api/echarts/machine/month/',
    method: 'post',
    data
  })
}

export function month_shortage(data) {
  return request({
    url: 'http://dgzhet.com:8000/api/echarts/shortage/month/',
    method: 'post',
    data
  })
}


export function get_month(params) {
  return request({
    url: 'http://dgzhet.com:8000/api/echarts/machine/month/',
    method: 'get',
    params
  })
}



